/*
 * Utiles_Ordenar.java
 *
 * Created on 23 de agosto de 2007, 8:38
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package utiles;

/**
 *
 * @author EPSGRAU
 */
public class Utiles_Ordenar {
    
    /** Creates a new instance of Utiles_Ordenar */
    public Utiles_Ordenar() {
    }
    
    
    public static void ordenar( int[] arr ){
        int temp = -1;
        for( int i = 0; i < arr.length - 1; i++ ){
            for( int j = i + 1; j < arr.length; j++ ){
                if( arr[ i ] > arr[ j ] ){
                    temp = arr[ i ];
                    arr[ i ] = arr[ j ];
                    arr[ j ] = temp;
                }    
            }            
        }        
    }      
    
}
